import selfAxios from '@/utils/selfAxios';

//定义调用接口方法

export default {
    //校验密码是否正确
    checkPsd(userID, password) {
        return selfAxios({
            url: '/user/psd',
            method: 'post',
            data: {
                userID,
                password,
            }
        });
    },
    //修改密码
    updatePsd(userID, password) {
        return selfAxios({
            url: '/user/psd',
            method: 'put',
            data: {
                userID,
                password
            }
        })
    }

}